#ifndef __ANALOG_IIC_H__
#define __ANALOG_IIC_H__

#include <stdio.h>

#define  data_dp 							0x80
#define  DIS_ADD_1							0x68 //第一个数码管的地址
#define  DIS_ADD_2							0x6a //第二个数码管的地址
#define  DIS_ADD_3							0x6c //第三个数码管的地址
#define  DIS_ADD_4							0x6e //第四个数码管的地址
 
#define  ET6228M_COMMAND					0x48 //显存地址
#define  data_null					    	0x00  //不显示
#define TTY6955_addr_W 0xa0 //从机的地址和写入标志
#define TTY6955_addr_R 0xa1 //从机的地址和读取标志
#define HY16009A_addr_R 0xa7 //从机的地址和读取标志

extern uint8_t Write_Buffer[4]; //主控端的写入资料缓存

extern void ET6226M_write_data(unsigned char add,unsigned char DATA);
extern void ET6226M_Init(void);
extern void ET6226M_clean_all(void);
extern void ET6226M_display_all(void);
extern void ET6226M_Change_Brightness(uint8_t num);
extern void setWrite_Buffer_4(uint8_t byte1, uint8_t byte2, uint8_t byte3, uint8_t byte4);
extern void setWrite_Buffer_3(uint8_t byte1, uint8_t byte2, uint8_t byte3);
extern bool TTY6955_write_data(uint8_t addrW, uint8_t *writeData, uint8_t length);
extern bool touchboard_read_data(uint8_t addrR, uint8_t *readData, uint8_t length);
extern void TTY6955_write_setting(void);

#endif